package com.xm.po;
/**
* @Description: 手机验证实体类
* @Author: Mr.Wang
* @Date: 2020/8/6
*/
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
public class Message{
	//属性
	private Integer id;
	//消息类型 0系统消息  1订单推送消息
	private Integer msgType;
	//接受消息的号码
	private String receivePhone;
	//推送消息内容
	private String msgContent;
	//推送时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//是否阅读 0未读 1已读
	private Integer msgStatus;
	//删除标志 -1删除 1未删除
	private Integer msgFlag;
	//构造器
	public Message(){}
	public Message(Integer id,Integer msgType,String receivePhone,String msgContent,Date createTime,Integer msgStatus,Integer msgFlag){
		this.id=id;
		this.msgType=msgType;
		this.receivePhone=receivePhone;
		this.msgContent=msgContent;
		this.createTime=createTime;
		this.msgStatus=msgStatus;
		this.msgFlag=msgFlag;
}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMsgType() {
		return msgType;
	}

	public void setMsgType(Integer msgType) {
		this.msgType = msgType;
	}

	public String getReceivePhone() {
		return receivePhone;
	}

	public void setReceivePhone(String receivePhone) {
		this.receivePhone = receivePhone;
	}

	public String getMsgContent() {
		return msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getMsgStatus() {
		return msgStatus;
	}

	public void setMsgStatus(Integer msgStatus) {
		this.msgStatus = msgStatus;
	}

	public Integer getMsgFlag() {
		return msgFlag;
	}

	public void setMsgFlag(Integer msgFlag) {
		this.msgFlag = msgFlag;
	}

	public String toString(){
		return "Message [id=" + id + ", msgType=" + msgType + ", receivePhone=" + receivePhone + ", msgContent=" + msgContent + ", createTime=" + createTime + ", msgStatus=" + msgStatus + ", msgFlag=" + msgFlag + "]";
	}
}

